package com.flash.DayProcessing.service.impl;

import com.flash.DayProcessing.mapper.TaStatisticsMapper;
import com.flash.DayProcessing.service.TaStatisticsService;
import com.flash.InventoryManagement.entity.TaStock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
 * 这是TA库存查询数量的实现类
 * @author Liy
 * @since 2022-8-24
 * @version 1.0
 */
@Service
@Transactional
public class TaStatisticsServiceImpl implements TaStatisticsService {
    @Autowired
    TaStatisticsMapper taStatisticsMapper;

    /**
     * 查看ta库存数量
     * @param fundId 基金id
     * @param statisticsDate 日期
     * @return 返回一个ta库存
     */
    @Override
    public List<TaStock> selectTaNum(String fundId, String statisticsDate) {
        return taStatisticsMapper.selectTaNum(fundId,statisticsDate);
    }
}
